package imgsei.wcj.com.kidkills;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.alibaba.android.arouter.launcher.ARouter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import imgsei.wcj.com.commonbusiness.utils.LogUtils;
import imgsei.wcj.com.commonbusiness.utils.RouteUtils;

public class MainActivity extends AppCompatActivity{
    private static final String TAG = "MainActivity";
    private Unbinder unbinder;

    @BindView(R.id.hello_btn)
    TextView helloBtn;

    Context mContext;
//    @Autowired
//    HelloService helloService;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        unbinder = ButterKnife.bind(this);
//        ARouter.getInstance().inject(this);
        LogUtils.showLogD(TAG,"onCreate");
    }

    @OnClick(R.id.hello_btn)
    public void toMedal(){
        LogUtils.showLogD(TAG,"toMedal");
        //helloService.sayHello("老王");
        ARouter.getInstance().build(RouteUtils.MEDA_HOME).navigation();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (unbinder!=null){
            unbinder.unbind();
        }
    }

}
